//
//  MusicTool.h
//  DayDayRun
//
//  Created by 卫建 on 16/1/11.
//  Copyright © 2016年 卫建. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>
@interface MusicTool : NSObject<AVAudioPlayerDelegate>

#pragma mark----播放音乐文件
+(BOOL)playMusic:(NSString *)filename;

#pragma mark----暂停播放
+(void)pauseMusic:(NSString *)filename;

#pragma mark----暂停音乐文件
+(void)stopMusic:(NSString *)filename;

#pragma mark----播放音效文件
+(void)playSound:(NSString *)filename;

#pragma mark----销毁音效
+(void)disposeSound:(NSString *)filename;

@end
